
const arr = [1,2,3,4,5]





const random =function(props:any,context:any) {

  
  return (
    <div>
      {
        arr.map((item,index) => {
          return <p onClick={()=>sendData(context)}>{item}--{index}</p>
        })
      }
    </div>
  )


}
const sendData = (context:any) => {
  context.emit('on-dengzixiong','dengzixiong')
  
}

export default random